package cn.datawin.bms.deploy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * docker容器表
 *
 * @author shengdongcloud
 * @date 2025-03-13 09:53:03
 */
@Data
@TableName("depl_docker_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "docker容器表")
public class DeplDockerInfoEntity extends Model<DeplDockerInfoEntity> {


	/**
	* id
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="id")
    private Integer id;

	/**
	* 容器id
	*/
    @Schema(description="容器id")
    private String containerId;

	/**
	* 模块id
	*/
    @Schema(description="模块id")
    private Integer moduleId;
	/**
	* 模块名
	*/
	@TableField(exist = false)
	private String moduleName;

	/**
	* 分支id
	*/
    @Schema(description="分支id")
    private Integer branchId;
	/**
	 * 分支名
	 */
	@TableField(exist = false)
	private String branchName;
	/**
	* 容器名
	*/
    @Schema(description="容器名")
    private String containerName;

	/**
	* 配置json
	*/
    @Schema(description="配置json")
    private String configJson;

	@TableField(exist = false)
    @Schema(description="serverModuleInfoId")
    private Integer serverModuleInfoId;

	/**
	* 服务器ip
	*/
    @Schema(description="服务器ip")
    private String serverIp;

	/**
	* 容器对外端口
	*/
    @Schema(description="容器对外端口")
    private String outServerPort;

	/**
	* 容器内部端口
	*/
    @Schema(description="容器内部端口")
    private String innerServerPort;

	/**
	* 状态
	*/
    @Schema(description="状态")
    private Integer status;

	/**
	* 更新时间
	*/
    @Schema(description="更新时间")
    private LocalDateTime updatetime;

}
